import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 收藏信息
 */
@Entity('community_collect')
export class CommunityCollectEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID' })
  userId: number;

  @Index()
  @Column({ comment: '帖子ID' })
  postId: number;

  @Column({ comment: '收藏时间', type: 'datetime' })
  collectTime: Date;
}
